Carbon


LanguageOrder

Header: StringCompare.h Carbon status: Supported

Determines the order in which strings in two different languages should be sorted.

SInt16 LanguageOrder (
    LangCode language1, 
    LangCode language2
);
language1

The language code of the first language.

language2

The language code of the second language.

function result

A value that indicates the sorting order: –1 if strings in the first language should be sorted before sorting text in the second language, 1 if strings in the first language should be sorted after sorting strings in the second language, or 0 if the sorting order does not matter (that is, if the languages are the same).0

DISCUSSION

LanguageOrder takes a pair of language codes and determines in which order strings from the first language should be sorted relative to strings from the second language.

“Implicit Language Codes” are listed in the Constants section. The implicit language codes scriptCurLang and scriptDefLang are not valid for LanguageOrder because the script system being used is not specified as a parameter to this function.

SPECIAL CONSIDERATIONS

LanguageOrder may move memory; your application should not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later. Exported by CarbonLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)